SWFC=haxe
MAIN=Main
SWFV=10
SWFH=640:480:30
SWFO=Game.swf
CPPO=Game
ASTP=assets
FLXP=/home/eduardo/Projects/Flixel-Haxe
FLIB=${FLXP}/org/flixel/data/assets/library.swf
CPPEXTRA= -lib nme -lib hxcpp --remap flash:nme --remap neko:cpp 

all:
	haxe -cp ${FLXP} -swf-lib ${FLIB} -swf-version ${SWFV} -swf-header ${SWFH} -cpp ${CPPO} --no-traces -main ${MAIN} ${CPPEXTRA} 

#all:
#	haxe -cp ${FLXP} -swf-lib ${FLIB} -swf-version ${SWFV} -swf-header ${SWFH} -swf ${SWFO} -cpp ${CPPO} --no-traces -main ${MAIN}  
	
#debug:
#	haxe -cp ${FLXP} -swf-lib ${FLIB} -swf-version ${SWFV} -swf-header ${SWFH} -swf ${SWFO} -debug -main ${MAIN}

#release:
#	haxe -cp ${FLXP} -swf-lib ${FLIB} -swf-version ${SWFV} -swf-header ${SWFH} -swf ${SWFO} --no-traces -main ${MAIN}  

#play:
#	haxe -cp ${FLXP} -swf-lib ${FLIB} -swf-version ${SWFV} -swf-header ${SWFH} -swf ${SWFO} -debug -main ${MAIN} -cmd "flashplayerdebugger ${SWFO}"
	
assets:
	${FLXP}/genlib.sh ${FLXP}/org/flixel/data/assets/ library.swf

clean:
	rm -rf ${SWFO}
	rm -rf assets
